package com.rest.demo.rxjava;

import java.nio.IntBuffer;

/**
 * @author Administrator
 * @decription
 * @Date 2018-02-09 17:13
 */
public class Dmeo1 {
    public static void main(String[] args) {
        IntBuffer intBuffer = IntBuffer.allocate(8);
        for (int i = 0; i < intBuffer.capacity(); i++) {
            intBuffer.put(i);
        }
        intBuffer.flip();

        while(intBuffer.hasRemaining()) {
            int j = intBuffer.get();
            System.out.print(j+" ");
        }
    }
}
